<include file="Public:header_reg"/>
<div class="daohang">
	<span class="daohang_li" style="margin-left:10px;">
		<a href="./">{$zidian[7][name]}</a>
	</span>
	>>
	<span class="daohang_li">
	{$zidian[88][name]}
	</span>

</div>

<!--mycenter_box 开始-->	
<div class="mycenter_box">

	<include file="Public:mycenter_zbox"/>
	
	<!--mycenter_ybox 开始-->	
	<div class="mycenter_ybox">
		<form name="form" action="{:U('User/chekmy_info')}" method="post" onsubmit="return check();" >
			<dl class="my_info_dl">
				<div class="welcome_words">{$zidian[96][name]}{$zidian[90][name]}</div>
				<dd>
					<ul>
						<li>
							<span class="ddspan">{$zidian[53][name]}：</span><input name="nicheng" type="text" value="{$nicheng}" class="ddinput" />
						</li>
						<li>
							<span class="ddspan">{$zidian[97][name]}：</span>
							<span class="inputspan"><input type="radio" name="sex" value="1" checked="checked" /> {$zidian[98][name]} </span>
							<span class="inputspan"><input type="radio" name="sex" value="2" <eq name="sex" value="2">checked="checked"</eq>  /> {$zidian[99][name]} </span>
						</li>
						<li>
							<span class="ddspan">{$zidian[100][name]}：</span>
							<span class="inputspan">
								<select name="year">
									<php>
									$nowyear=date('Y',time());
									for($ys=$nowyear;$ys>=1900;$ys--){
									</php>
									<option  <eq name="year" value="$ys">selected="selected"</eq> >{$ys}</option>
									<php>
									}
									</php>
								</select>
								{$zidian[101][name]} 
							</span>
							<span class="inputspan">
								<select name="month">
									<php>
									for($ms=1;$ms<=12;$ms++){
									</php>
									<option <eq name="month" value="$ms">selected="selected"</eq> >{$ms}</option>
									<php>
									}
									</php>
								</select>
								{$zidian[102][name]} 
							</span>
							<span class="inputspan">
								<select name="day">
									<php>
									$maxday=31;
									for($ds=1;$ds<=$maxday;$ds++){
									</php>
									<option <eq name="day" value="$ds">selected="selected"</eq> >{$ds}</option>
									<php>
									}
									</php>
								</select>
								{$zidian[103][name]} 
							</span>
						</li>
						<li>
							<span class="ddspan">{$zidian[104][name]}：</span><input name="home" type="text" value="{$home}" class="ddinput" />
						</li>
						<li>
							<span class="ddspan">{$zidian[105][name]}：</span><input name="area" type="text" value="{$area}" class="ddinput" />
						</li>
						<li>
							<span class="ddspan">Q Q：</span><input name="qq" type="text" value="{$qq}" class="ddinput" />
						</li>
						<li>
							<span class="ddspan">{$zidian[106][name]}：</span><input name="job" type="text" value="{$job}" class="ddinput" />
						</li>
						<li>
							<span class="ddspan">{$zidian[107][name]}：</span>
							<input name="education" type="text" value="{$education}" class="ddinput" />
						</li>
						<li>
							<span class="ddspan">{$zidian[108][name]}：</span>
							<input name="income" type="text" value="{$income}" class="ddinput" />
						</li>
						<li>
							<span class="ddspan">{$zidian[109][name]}：</span>
							<input name="qinggan" type="text" value="{$qinggan}" class="ddinput" />
						</li>
						<li>
							<style>
							.
							</style>
							<span class="ddspan">{$zidian[110][name]}：</span>
							<input name="xingqu" type="hidden" id="xingqu"  value="{$xingqu}" class="ddinput" />
							<input id="selall_xingqus" type="button" class="buttom" value="{$zidian[111][name]}" style="padding:1px 8px;float:left;margin-right:500px;margin-bottom:10px;" />
							<volist name="xingqus" id="xingqus">
								<span style="width:300px;display:block;margin-left:80px;float:left;"><input type="checkbox" name="xingqus" value="{$xingqus.id}" class="checkboxml" <in name='xingqus.id' value='$xingqu'>checked</in> /><span class="xingqus_name" style="padding:0 12px 0 2px;">{$xingqus.name}</span></span> 
							</volist>
							<script>
							$(document).ready(function(){
							　　$("input[name='xingqus']").on("click",function(){
									var gids = new Array();
									var gnames=new Array();
									$.each($("input[name='xingqus']:checked"), function(i, n){
										gids.push($(n).val());
										var menu_name=$(this).parent().find("span.xingqus_name").text();
										gnames.push(menu_name);
										
									});
									
									var ids=gids.toString();
									$('#xingqu').val(ids);
							　　});
									//页面载入时判断分类项目
									var gnamess=new Array();
									$.each($("input[name='xingqus']:checked"), function(){
										var menu_name=$(this).parent().find("span.xingqus_name").text();
										gnamess.push(menu_name);
										
									});
							
								$("#selall_xingqus").toggle(function() {   
									 $("input[name='xingqus']").each(function() {   
									 $(this).attr("checked", true); 
									 });
									 
									var gids = new Array();
									$.each($("input[name='xingqus']:checked"), function(i, n){
										gids.push( $(n).val() );
									});
									var ids=gids.toString();
									$('#xingqu').val(ids);
									
								},function(){
									 $("input[name='xingqus']").each(function() {   
									 $(this).attr("checked", false); 
									 }); 
									 
									var gids = new Array();
									$.each($("input[name='xingqus']:checked"), function(i, n){
										gids.push( $(n).val() );
									});
									var ids=gids.toString();
									$('#xingqu').val(ids);
									
								});
								
							});
							</script>

						</li>
					</ul>
				</dd>
				<dt><input type="submit" value="{$zidian[112][name]}" /></dt>
			</dl>
		
		</form>
	</div>
	<!--mycenter_ybox 结束-->	
	<div class="clear"></div>
</div>
<!--mycenter_box 结束-->	
	<script type="text/javascript">
	function check(){
	

		var nicheng=$('input[name="nicheng"]').val();
		if(nicheng==''){
			alert('{$zidian[81][name]}');
			return false;
		}
		if(nicheng.length<2){
			alert('{$zidian[82][name]}');
			return false;
		}
		if(nicheng.length>28){
			alert('{$zidian[83][name]}');
			return false;
		}
		var dsg3=false;
		$.ajax({ 
			type: "post", 
			url: "{:U('User/check_nicheng')}", 
			async:false, 
			data:'nicheng='+nicheng+'',
			success: function(v){
				if(v=='1'){
					alert('{$zidian[84][name]}');
				}else{
					dsg3=true;
				}
			} 
		});
		if(dsg3==false){
			return false;	
		}
			
	}
	</script>

<include file="Public:bottom"/>    
